package com.nwcl.basic.service.impl;

import com.nwcl.basic.bo.OrderFlowBO;
import com.nwcl.basic.dao.OrderFlowDao;
import com.nwcl.basic.entity.OrderFlow;
import com.nwcl.basic.service.OrderFlowService;
import com.nwcl.common.utils.BeanUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author liguiqin
 * @date 2023/5/29
 */
@Service
public class OrderFlowServiceImpl implements OrderFlowService {
    @Autowired
    private OrderFlowDao orderFlowDao;

    @Override
    public Integer save(OrderFlowBO flowBO) {
        OrderFlow flow= BeanUtil.copy(flowBO,OrderFlow.class);
        orderFlowDao.save(flow);
        return flow.getId();
    }
}
